# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test11
# Description:   例11.9
# Author:       ASUS
# Date:         2019/3/26
#-------------------------------------------------------------------------------


import re
s = "12-a-abc54-a-xyz---78-A-ytr"
result = re.findall(r"\d\d-a-[a-z]{3}",s)
print(result)
#忽略大小写
result = re.findall(r"\d\d-a-[a-z]{3}",s,re.I)
print(result)
#findall也会将分组形式返回
result = re.findall(r"(\d\d)-a-([a-z]{3})",s)
print(result)



